import { request } from "../Request";

export interface IGetUserInfoResponse {
	id?: number;
	username?: string;
	nickname?: string;
	isLogin?: boolean;
}
export const getUserInfo = () => {
	return request<IGetUserInfoResponse>({
		url: "/ruta_api/user/me",
		method: "get"
	});
};
